import { NgModule } from '@angular/core';
import { SharedModule } from '@shared/shared.module';
import { MidAutumnRoutingModule } from './mid-autumn-routing.module';
import { CakeOrderComponent } from './cake-order/cake-order.component';
import { CakeOrderListComponent } from './cake-order/cake-order-list/cake-order-list.component';
import { ServeBackComponent } from './serve-back/serve-back.component';
import { MidAutumnCakePostalComponent } from './cake-postal/cake-postal.component';
import { MoonCakeService } from '@core/routes-services/moon-cake.service';
import { CakePostalService } from '@core/routes-services/cake-postal.service';
import { ActivityProductComponent } from './activity-product/activity-product.component';
import { ProductEditComponent } from './activity-product/product-edit/product-edit.component';
import { MidAutumnAllOrderListComponent } from './cake-order/all-order-list/all-order-list.component';

const COMPONENTS = [
  CakeOrderComponent,
  MidAutumnCakePostalComponent,
  ActivityProductComponent];
const COMPONENTS_NOROUNT = [
  CakeOrderListComponent,
  ServeBackComponent,
  ProductEditComponent,
  MidAutumnAllOrderListComponent];

@NgModule({
  imports: [
    SharedModule,
    MidAutumnRoutingModule
  ],
  declarations: [
    ...COMPONENTS,
    ...COMPONENTS_NOROUNT
  ],
  entryComponents: COMPONENTS_NOROUNT,
  providers:[
    CakePostalService
  ]
})
export class MidAutumnModule { }
